package com.expmanage.actions.login;

import com.opensymphony.xwork2.ActionContext;

public class mloginaction {
	private String password = "";

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String execute() {
		String str = "failed";
		if (this.password.equals("123456")) {
			ActionContext.getContext().getSession().put("user", "root_manager");
			ActionContext.getContext().getSession().put("role", "manager");
			str = "success";
		}
		return str;
	}
}
